package com.zjz.springcloud.dao;

import com.zjz.springcloud.pojo.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: zjz
 * @Date: 2021/10/05/16:52
 * @Description:
 * @Target:
 */
@Mapper    // Mybatis的
@Repository // spring的
public interface DeptDao {

    public boolean addDept(Dept dept);

    public Dept queryById(@Param("deptno")Long deptno);

    public List<Dept> queryAll();


}
